﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using D.WPF.MVVM;

namespace LeftMenuList
{
    public class DemoInfoModel : BaseMvvm
    {
        public string Key { get; set; }

        private string _title;

        public string Title
        {
            get => _title;
            set { _title = value; RaisePropertyChanged(); }
        }

        private int _selectedIndex;

        public int SelectedIndex
        {
            get => _selectedIndex;
            set { _selectedIndex = value; RaisePropertyChanged(); }
        }

        public bool IsGroupEnabled { get; set; }

        public IList<DemoItemModel> DemoItemList { get; set; }
    }

    public class DemoItemModel : BaseMvvm
    {
        private bool _isVisible = true;
        private string _queriesText = string.Empty;

        public string Name { get; set; }

        public string GroupName { get; set; }

        public string TargetCtlName { get; set; }

        public object ImageBrush { get; set; }

        public bool IsNew { get; set; }

        public string QueriesText
        {
            get => _queriesText; 
            set { _queriesText = value; RaisePropertyChanged(); }
        }

        public bool IsVisible
        {
            get => _isVisible;
            set { _isVisible = value; RaisePropertyChanged(); }
        }
    }
}
